package com.rainng.coursesystem.dao.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.rainng.coursesystem.model.entity.TireInfoEntity;
import com.rainng.coursesystem.model.shitong.CheckFileVo;
import com.rainng.coursesystem.model.vo.response.ResultVO;
import com.rainng.coursesystem.module.task.entity.Task;
import com.rainng.coursesystem.module.task.entity.TaskChange;
import com.rainng.coursesystem.module.task.entity.TaskChangeVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface TireInfoMapper {

    int countTireInfo(@Param("po") TireInfoEntity tie);

    IPage<Object> queryTireInfo(@Param("po") TireInfoEntity po, Page<Object> pageParam);

    List<String> getTireGuiGe();

    List<Map<String,String>> getTireWidth(String guige,String cengji);

    int saveTaskChange(@Param("po") TaskChangeVo task);

    int updateIsTaskChange(String applyNum);

    List<Map<String,String>> queryTaskChange(String fapplyNum);

    String getNumId(String taskCode,String applyNum);

    int updateTaskChange(@Param("po")TaskChangeVo task);
//    void setTaskImportant(@Param("po")TaskChangeVo task);
    void setTaskImportant(@Param("id") String id,  @Param("isImportant") Integer isImportant);


    int updateSonNumId(String numId,String fapplyNum);

    List<String> selectTaskApplyNumByIds(@Param("ids")List<String> ids);

    int deleteTaskChangeByFatherApplyNums(@Param("applynums")List<String> applynums);

    List<Map<String,String>> getTaskChangeInfo(String taskType);


    int saveTaskChangeInfo(@Param("query") TaskChangeVo task);
}
